/******************************************************************************
 *                                                                            *
 *                       OS tasking header file                               *
 *                                                                            *
 *----------------------------------------------------------------------------*/

/*-------------------------------------------------------------------
 * to avoid multiple definition if the file is included several times
 *-------------------------------------------------------------------*/
#ifndef OS_TASK_H
#define OS_TASK_H

#include "os.h"

/*----------------------------------------------------------------------------*
 *                     --- Local constants & typedefs ---                     *
 *----------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------*
 *                         --- Global Variables ---                           *
 *----------------------------------------------------------------------------*/



/*----------------------------------------------------------------------------*
 *                          --- Public functions ---                          *
 *----------------------------------------------------------------------------*/

#ifdef __cplusplus
extern "C"
{
#endif

OS_Error OS_ActivateTask(OS_TaskID TaskID, OS_TimeType ExpirationTime, OS_TimeType CyclicTime);
OS_Error OS_CancelTask(OS_TaskID TaskID);
void OS_CancelAllTasks(void);
OS_BoolType OS_IsTaskActive(OS_TaskID TaskID);

#pragma CODE_SEG NON_BANKED
void OS_ScheduleTasks(void);
void OS_TaskCheck(void);
#pragma CODE_SEG DEFAULT

#ifdef __cplusplus
}
#endif

#endif /* OS_Timer_h*/
/******************************************************************************
 *                               End of file                                  *
 ******************************************************************************/
